package com.shiro.shiro_demo.mapper;

import com.shiro.shiro_demo.entity.CmfzAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface CmfzAdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CmfzAdmin record);

    int insertSelective(CmfzAdmin record);

    CmfzAdmin selectByPrimaryKey(Integer id);
//    根据名字查找账号密码
    CmfzAdmin selectUserName(String usarname);

    //    根据openID查找账号密码
    CmfzAdmin selectUserOpenID(String openid);

    int updateByPrimaryKeySelective(CmfzAdmin record);

    int updateByPrimaryKey(CmfzAdmin record);
}